<!DOCTYPE html>
<html>
<head>
  <meta charset='UTF-8'>
  <link rel='stylesheet' href='https://unpkg.com/element-ui/lib/theme-chalk/index.css'>
  <title>条件渲染</title>
</head>
<body>
  <div id='app'>
    <el-button  @click='click'>默认按钮</el-button>
      <div v-if="isShow">
          {{message}}
      </div>
      <div v-else> {{hiden}}</div>
     
  </div>
</body>
  <script src='https://unpkg.com/vue/dist/vue.js'></script>
  <script src='https://unpkg.com/element-ui/lib/index.js'></script>
  <script>
    new Vue({
      el: '#app',
      data: function() {
        return {
            isShow:true,
            message:"hello world!",
            hiden:"good bye！"

        }
      },
      methods:{
        click(e){
          // console.log(this.show);
          this.isShow = !this.isShow;
        }
      }
    })
  </script>
</html>